home *** CD-ROM | disk | FTP | other *** search
/ Belgian Amiga Club - ADF Collection / BS1 part 05.zip / BS1 part 5 / SASC_6.0_Disk_7.adf / Source_And_Examples / source / cxovf.c < prev    next >
Encoding:
C/C++ Source or Header  |  1992-07-30  |  1.5 KB  |  44 lines

  1. #include <exec/types.h>
  2. #include <intuition/intuition.h>
  3. #include <proto/exec.h>
  4. #include <proto/intuition.h>
  5. #include <string.h>
  6. void cxovf(void);
  7. void __exit(int);
  8.  
  9. extern struct IntuitionBase *IntuitionBase;
  10. extern char *_ProgramName;
  11.  
  12. static struct IntuiText Text2 = {-1,-1, /* pen numbers */
  13.                              0,         /* draw mode */
  14.                              14,14,     /* starting offsets */
  15.                              NULL,      /* text attribute pointer */
  16.                              NULL,
  17.                              NULL };
  18.  
  19. static struct IntuiText BodyText = {-1,-1,      /* pen numbers */
  20.                              0,         /* draw mode */
  21.                              4,4,       /* starting offsets */
  22.                              NULL,      /* text attribute pointer */
  23.                              "** Stack Overflow **",
  24.                              &Text2 };
  25.  
  26. static struct IntuiText ResponseText = {-1,-1,  /* pen numbers */
  27.                              0,         /* draw mode */
  28.                              4,4,       /* starting offsets */
  29.                              NULL,      /* text attribute pointer */
  30.                              "EXIT",
  31.                              NULL };
  32. void cxovf()
  33. {
  34. char    temp[80];
  35.  
  36. if (IntuitionBase == NULL)
  37.    IntuitionBase = (struct IntuitionBase *)
  38.                    OpenLibrary("intuition.library",0);
  39. memcpy(temp, _ProgramName, (long) _ProgramName[-1]);
  40. temp[(int) _ProgramName[-1]] = '\0';
  41. Text2.IText = temp;
  42. AutoRequest(NULL,&BodyText,NULL,&ResponseText,0,0,250,40);
  43. __exit(20);
  44. }